<?php
/**
 * Created by 项目.
 * User: xuguopeng
 * Date: 6/2/21
 * Time: 1:14 PM
 */

namespace app\api\model;


use think\model\concern\SoftDelete;

class Product extends BaseModel
{
    use SoftDelete;

    public function img()
    {
        return $this->belongsTo('Image','img_id','id');
    }

    // 店面信息
    public function store()
    {
        return $this->belongsTo('Store','store_id','id');
    }

    // 店面信息
    public function coupon()
    {
        return $this->belongsTo('ProductCoupon','id','product_id');
    }
}